import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import { formatSessionStorage } from './utils/public.js'  //公共方法文件
import moment from 'moment'


Vue.config.productionTip = false


moment.locale('zh-cn')

//文件上传地址
const upload = "/api/file/upload"
//文件下载地址
const dowload = "/api/file"
Vue.prototype.$sessionStorage = formatSessionStorage
Vue.prototype.$upload = upload
Vue.prototype.$dowload = dowload
Vue.prototype.$moment = moment;
Vue.use(ElementUI, { size: 'small', zIndex: 3000 });

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
